package com.cskaoyan.mapper.goodsmapper;

import com.cskaoyan.bean.comment.Comment;
import com.cskaoyan.bean.goods.Goods;
import com.cskaoyan.bean.goods.GoodsExample;

import com.cskaoyan.bean.goods.WxGoodsListBean;
import com.cskaoyan.vo.wx.WxHomeIndexVoSimpleGoods;

import com.cskaoyan.vo.wx.WxFootPrintGoodsVo;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    long countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    List<Goods> selectByExampleWithBLOBs(GoodsExample example);

    List<Goods> selectByExample(GoodsExample example);

    Goods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKeyWithBLOBs(Goods record);

    int updateByPrimaryKey(Goods record);

    void insert2(Goods goods);


    List<WxHomeIndexVoSimpleGoods> selectSimpleGoodsByExample(GoodsExample goodsExample);


    WxFootPrintGoodsVo selectById(Integer goodsId);

    Integer selectBrandIdById(Integer goodsId);

    List<WxGoodsListBean> selectByCategoryId(@Param("categoryId") Integer categoryId);

    void InsertComment(Comment comment);

    void insertComment(Comment comment);
}